<?php

	/*** error reporting, development ***/
	error_reporting(E_ALL);

	/*** define the site root path constant ***/
	$sitePath = realpath(dirname(__FILE__));
	define('_ROOT', $sitePath);

	/*** include the initializer file ***/
	include 'Application/init.php';	

	/*** load the router ***/
	$registry->router = new router($registry);
	
	/*** set controller path ***/
	$registry->router->setPath(_ROOT . '/Controller');
	
	/*** load up the template ***/
 	$registry->template = new Template($registry);

 	/*** load the controller ***/
 	$registry->router->loader();
